import java.io.PrintStream;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 1:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class Player {

    private String name;
    private String team;
    private int number;
    private int age;

    public Player(String name, String team, int number, int age) {
        this.name = name;
        this.team = team;
        this.number = number;
        this.age = age;
    }

    public void displayPlayerInfo(PrintStream printer) {
        printer.println(name + ". " + team + ". #" + number + ". Age " + age + ".");
    }

    public void changeTeam(String teamToTransferPlayerTo) {
        team = teamToTransferPlayerTo;
    }

    public String getName() {
        return name;
    }

    public String getTeamName() {
        return team;
    }

}
